#include "jlinkarm.h"
#include <stdint.h>

/**
 * write bin data
*/
int program_flash_data(u32 addr, u32 size, u8* pdata);
/**
 * write bin file
*/
int program_bin_file(const char *filename, u32 addr);

/**
 * write file types: .bin, .hex, .elf, .s, .s19, .mot, .srec
*/
int program_file(const char *filename, u32 addr);

int program_erase_chip(void);